import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin: false,
    auths: JSON.parse(sessionStorage.getItem('auths')) || []
  },
  getters: {
  },
  mutations: {
    changeLoginStatus(state) {
      state.isLogin = true
    },
    setAuths(state, auths) {
      state.auths = auths
    },
  },
  actions: {
  },
  modules: {
  }
})
